#include "CTexture.h"

CTexture::CTexture() {

}

CTexture::~CTexture() {

}

void CTexture::loadFromFile(PCSTR file) {

    D3DXCreateTextureFromFileExA(
        _Device.Get(),
        file,
        D3DX_DEFAULT,
        D3DX_DEFAULT,
        D3DX_DEFAULT,
        0,
        D3DFMT_UNKNOWN,
        D3DPOOL_MANAGED,
        D3DX_FILTER_NONE,
        D3DX_DEFAULT,
        0xffffff,
        NULL,
        NULL,
        &_Texture
    );
}
